from django.conf.urls.defaults import *

urlpatterns = patterns('',
    # Example:
    # (r'^crm/', include('crm.foo.urls')),

    # Uncomment this for admin:
    (r'^([^/]+)/invoice/(?P<id>\d+)/generateOrder/$', 'crm.frontend.views.generateOrders'),
    (r'^([^/]+)/invoice/(?P<id>\d+)/pdf/$', 'crm.frontend.views.generateInvoicePDF'),
    (r'^([^/]+)/order/(?P<id>\d+)/pdf/$', 'crm.frontend.views.generateOrderPDF'),
	(r'^([^/]+)/getitem/(?P<id>\d+)/$', 'crm.frontend.books.item_get'),
    (r'^([^/]+)/getclient/(?P<id>\d+)/$', 'crm.frontend.books.client_get'),
    (r'^', include('django.contrib.admin.urls')),
     
    #(r'^managers/$', 'crm.frontend.managers_views.view_index'),
    #(r'^workshop/$', 'crm.frontend.books.workshops_list'),
    #(r'^workshop/save/$', 'crm.frontend.books.workshops_save'),
    #(r'^workshop/delete/$', 'crm.frontend.books.workshops_delete'),
    #(r'^workshop/(?P<workshop_id>\d+)/$', 'crm.frontend.books.workshops_get'),    
    #(r'^category/$', 'crm.frontend.books.category_list'),
    #(r'^category/save/$', 'crm.frontend.books.category_save'),
    #(r'^category/delete/$', 'crm.frontend.books.category_delete'),
    #(r'^category/(?P<id>\d+)/$', 'crm.frontend.books.category_get'),
    #(r'^item/$', 'crm.frontend.books.item_list'),
    #(r'^item/save/$', 'crm.frontend.books.item_save'),
    #(r'^item/delete/$', 'crm.frontend.books.item_delete'),
    #(r'^item/(?P<id>\d+)/$', 'crm.frontend.books.item_get'),
    #(r'^managers/(?P<manager_id>\d+)/$', 'crm.frontend.managers_views.view_edit'),
    #(r'^managers/(?P<manager_id>\d+)/save/$', 'crm.frontend.managers_views.action_save'),
    #(r'^login/$', 'crm.frontend.views.login'),    
	#(r'^do_login/$', 'crm.frontend.views.do_login'),   
    (r'^assets/(?P<path>.*)$', 'django.views.static.serve', {'document_root': '/var/www/ksp.lan/crm/crm/public_html/assets'}),
    #(r'^$', 'crm.frontend.views.login'),
    
)
